﻿import request from '/@/utils/request';
enum Api {
  AddBusStroe = '/api/busStroe/add',
  DeleteBusStroe = '/api/busStroe/delete',
  UpdateBusStroe = '/api/busStroe/update',
  PageBusStroe = '/api/busStroe/page',
  IsEnabled = '/api/busStroe/IsEnabled',
}

// 增加门店
export const addBusStroe = (params?: any) =>
	request({
		url: Api.AddBusStroe,
		method: 'post',
		data: params,
	});

// 删除门店
export const deleteBusStroe = (params?: any) => 
	request({
			url: Api.DeleteBusStroe,
			method: 'post',
			data: params,
		});
export const setEnable = (params?: any) => 
	request({
			url: Api.IsEnabled,
			method: 'post',
			data: params,
		});	
// 编辑门店
export const updateBusStroe = (params?: any) => 
	request({
			url: Api.UpdateBusStroe,
			method: 'post',
			data: params,
		});

// 分页查询门店
export const pageBusStroe = (params?: any) => 
	request({
			url: Api.PageBusStroe,
			method: 'post',
			data: params,
		});


